import request from '@/utils/request';

export async function getDetail(params?: any) {
  return request(`/utmadmin/biz/autotest/case/${params}`, {
    method: 'GET',
  });
}

export async function saveDetailData(params?: any) {
  return request('/utmadmin/biz/autotest/case/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function pendingAdd(caseId: any, params?: any) {
  return request(`/utmadmin/biz/autotest/pending/add/${caseId}`, {
    method: 'POST',
    data: params,
  });
}

export async function pendingstatus(params?: any) {
  return request('/utmadmin/biz/autotest/case/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function pendingtitle(params?: any) {
  return request('/utmadmin/biz/autotest/case/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function readingAdd(params?: any) {
  return request('/utmadmin/biz/autotest/case/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}

export async function readingUpdate(params?: any) {
  return request('/utmadmin/biz/autotest/case/saveOrUpdate', {
    method: 'POST',
    data: params,
  });
}
